#ifndef SERVERWINDOW_H
#define SERVERWINDOW_H

#include <QtGui/QMainWindow>
#include "server.h"

namespace Ui {
    class ServerWindow;
}

class ServerWindow : public QMainWindow {
    Q_OBJECT
public:
    ServerWindow(QWidget *parent = 0);
    ~ServerWindow();

    Server * server;

    void connectedControlsState();
    void disconnectedControlsState();
protected:
    void changeEvent(QEvent *e);
public slots:
    void onStartServerClicked();
private:
    Ui::ServerWindow *m_ui;

private slots:
    void onServerStateChange(QAbstractSocket::SocketState);
};

#endif // SERVERWINDOW_H
